package com.cebbank.yyi.springbootapp.jingtang;

import lombok.Data;
import okhttp3.ResponseBody;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * @description:
 * @author: yyi
 * @date: 2024/9/20 9:45
 * @version: 1.0
 **/
@Data
public class ResponseInfo {

    private String originalFileName;

    private ResponseBody responseBody;

    public static void main(String[] args) {
        String act_form_version = "v第1版";
        String regex = "\\d+"; // 匹配一个或多个数字
        Pattern pattern = Pattern.compile(regex);
        Matcher matcher = pattern.matcher(act_form_version);
        while (matcher.find()) {
            System.out.println(matcher.group());
        }
    }
}
